//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tools\fn_getRanRangeInt.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_num1","_num2","_ra","_res"];
DEFAULT_PARAM(_num1,0,0);
DEFAULT_PARAM(_num2,1,_num1);
if (_num1 > _num2) then {
	_ra = _num1;
	_num1 = _num2;
	_num2 = _ra;
};
_ra = _num2 - _num1;
_ra = round(random _ra);
_res = (_num1 + _ra);
TRACE_1("End",_res);
TMFPROFILERSTOP;
_res;